import { getField } from '@/api/equipment/fields'

/** 获取入库字段列表 */
export const getInboundFieldList = async () => {
  let inboundFieldList
  await getField().then(res => {
    inboundFieldList = res.data.data.filter(item => item.type === 'inboundType')
  })
  return inboundFieldList
}

/** 获取出库字段列表 */
export const getOutboundFieldList = async () => {
  let outboundFieldList
  await getField().then(res => {
    outboundFieldList = res.data.data.filter(item => item.type === 'outboundType')
  })
  return outboundFieldList
}

